//
//  TestAInterceptor.swift
//  XNavigator_Example
//
//  Created by x on 2024/9/1.
//  Copyright © 2024 CocoaPods. All rights reserved.
//

import XNavigator


class AInterceptor: RouteInterceptor {

    var order: Int { return 2}
    
    func intercept(route: UnionType, completion: @escaping (Bool) -> Void) {
        print("AInterceptor Intercepting route \(route)")
        completion(true)
    }
    
    func willNavigate(to route: UnionType) {
        print("AInterceptor willNavigate \(route)")
    }
}
